package com.witmore.skyline.web.controller.vo.param;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import jakarta.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * Description: DeviceSnParam
 * Author: 豆子高
 * Date: 2025/2/28 15:18
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class DeviceReportParam extends PageParamVO implements Serializable {

    @NotNull(message = "设备id不能为空")
    private Integer skylineDeviceId;

    private Integer orgId;
    private Integer projectId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;
}
